#include<stdio.h>
int main()
{
	int m=1,sum=0;
	while(m>0){
		scanf("%d",&m);
		if(m%2==1&&m>0) sum+=m;
	}
	printf("%d",sum);
}
